package com.holylin.learning.java.spring.data.jpa;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import org.springframework.stereotype.Repository;

public class UserDaoImpl implements UserDaoPlus {
	@PersistenceContext
	private EntityManager em;

	@Override
	public List<User> plusFun() {
		Query query = em.createQuery("from User");
		return query.getResultList();
	}

}
